<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/12/19
  Time: 17:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>欢迎!${user.username}</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/index.css"/>

</head>
<body>
<aside>
    <div class="side_menu">
        <div>基本信息管理</div>
        <ul>
            <c:if test="${fn:contains(user.authority,'会计类别维护')}">
                <a href="subjectType/index" target="mainFrame">
                    <li>会计类别维护</li>
                </a>
            </c:if>
            <c:if test="${fn:contains(user.authority,'部门建档维护')}">
                <a href="dept?method=index" target="mainFrame">
                    <li>部门建档维护</li>
                </a>
            </c:if>
            <c:if test="${fn:contains(user.authority,'人员信息维护')}">
                <a href="users" target="mainFrame">
                    <li>人员信息维护</li>
                </a>
            </c:if>
            <c:if test="${fn:contains(user.authority,'常用词汇维护')}">
                <a href="initial?method=index" target="mainFrame">
                    <li>常用词汇维护</li>
                </a>
            </c:if>
            <c:if test="${fn:contains(user.authority,'会计科目维护管理')}">
                <a href="subject/index" target="mainFrame">
                    <li>会计科目维护管理</li>
                </a>
            </c:if><c:if test="${fn:contains(user.authority,'会计科目查询统计分析')}">
            <a href="initial?method=index" target="mainFrame">
                <li>会计科目查询统计分析</li>
            </a>
            </c:if><c:if test="${fn:contains(user.authority,'特殊科目建档管理')}">
            <a href="initial?method=index" target="mainFrame">
                <li>特殊科目建档管理</li>
            </a>
            </c:if><c:if test="${fn:contains(user.authority,'个人信息管理')}">
            <a href="user" target="mainFrame">
            <li>个人信息管理</li>
            </a>
            </c:if>
        </ul>
    </div>

    <div class="side_menu">
        <div>会计凭证管理</div>
        <ul>
            <c:if test="${fn:contains(user.authority,'会计凭证提交')}">
                <a href="voucher/addvoucher" target="mainFrame">
                    <li>原始凭证提交</li>
                </a>
            </c:if>
            <c:if test="${fn:contains(user.authority,'会计凭证查询审核')}">
                <a href="accountreview?method=index" target="mainFrame">
                    <li>原始凭证查询/审核</li>
                </a>
            </c:if>
            <c:if test="${fn:contains(user.authority,'会计凭证记账')}">
                <a href="AccountTypeIn?method=index" target="mainFrame">
                    <li>记账凭证编制</li>
                </a>
            </c:if>


        </ul>
    </div>

    <div class="side_menu">
        <div>会计报表管理</div>
        <ul>
            <c:if test="${fn:contains(user.authority,'资产负债表')}">
                <a href="ChartLiabilities?method=index" target="mainFrame">
                    <li>资产负债表</li>
                </a>
            </c:if>
            <c:if test="${fn:contains(user.authority,'利润表')}">
                <a href="ChartProfit?method=index" target="mainFrame">
                    <li>利润表</li>
                </a>
            </c:if>
            <c:if test="${fn:contains(user.authority,'现金流量表')}">
                <a href="ChartCashFlow?method=index" target="mainFrame">
                    <li>现金流量表</li>
                </a>
            </c:if>


        </ul>
    </div>

    <div class="side_menu">
        <div>固定资产管理</div>
        <ul>
            <a href="html/采购申请表.html" target="mainFrame">
                <li>采购申请表</li>
            </a>
            <a href="html/资产清单.html" target="mainFrame">
                <li>资产清单</li>
            </a>
        </ul>
    </div>


</aside>

<!-- 主要部分 -->
<main>
    <iframe src="" frameborder="0" name="mainFrame" height="1000" width="1100" scrolling="no">
    </iframe>
</main>

</body>
<script src="${pageContext.request.contextPath}/js/jquery-1.4.2.js"></script>
<script src="${pageContext.request.contextPath}/js/index.js"></script>
</html>
